class CreateReservations < ActiveRecord::Migration
  def self.up
    create_table :reservations do |t|
      t.column :start_date, :datetime
      t.column :end_date, :datetime
      t.column :member_id, :int
      t.column :post_id, :int
      
      # See Reservation model for possible states.      
      t.column :state, :string, :default => 'cart'
      
      t.timestamps
    end
  end

  def self.down
    drop_table :reservations
  end
end
